<?php 
class commentsAction extends AdminMaster{
	public function listFilter(){	
		$this->formFilter['filter_is_viewed'] = '-1';
		$this->formFilter['filter_is_allowed'] = '-1';
		$this->formFilter['filter_product_id'] = '-1';
		
		$this->data['filter']['products'] = Products::getDataListFrontEnd();
	}
	public function showList(){
		$this->data['list']			 		= ProductComments::getDataList($this->data['filter'], $this->data['pagination']);
		$this->data['pagination']['total']		= ProductComments::getDataListCount($this->data['filter']);
		$this->data['pagination']['router']		= 'products_comment';
		$this->data['pagination']['params']		= $this->data['filter'];
		#print_r($this->data);die;
	}
	public function delRecord(){
		ProductCommentsTable::delete($this->data['select_list']);
	}
	public function disableRecord(){
		ProductCommentsTable::notAllow($this->data['select_list']);
	}
	public function enableRecord(){
		ProductCommentsTable::allow($this->data['select_list']);
	}
	public function saveOrder(){
		
	}
	public function addnew(){
		
	}
	public function edit(){
		
	}
}